package com.ggh.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggh.dao.RechargerMapper;
import com.ggh.entity.Recharger;
import com.ggh.service.RechargerService;
import org.springframework.stereotype.Service;

/**
 * @author ： jsq
 * @date ：2019/10/13 22:24
 * @description : 充值
 * @path : com.ggh.service.impl.RechargeServiceImpl
 * @modifiedBy ：
 */

 @Service
public class RechargerServiceImpl extends ServiceImpl<RechargerMapper, Recharger> implements RechargerService {
    @Override
    public Recharger findCzr(Integer type) {
        Recharger recharger = baseMapper.selectOne(new QueryWrapper<Recharger>().eq("type", type));
        return recharger;
    }
}
